//
//  BVBaseModifyViewController.m
//  BuyVegetable
//
//  Created by yushanchang on 16/10/21.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import "BVBaseModifyViewController.h"

@interface BVBaseModifyViewController ()

@end

@implementation BVBaseModifyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)setupRightBarButtonItem {

    BVNavItem *navItem = [[BVNavItem alloc] initWithFrame:CGRectMake(0, 0, 40, 30)];
    [navItem setTitle:@"保存" forState:UIControlStateNormal];
    [navItem addTarget:self action:@selector(confirmSaveClick) forControlEvents:UIControlEventTouchUpInside];
    self.navItem = navItem;
    // 调整间距
    UIBarButtonItem *space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemFixedSpace target:nil action:nil];
    space.width = -10;
    self.navigationItem.rightBarButtonItems = @[space,[[UIBarButtonItem alloc] initWithCustomView:navItem]];
}

- (void)confirmSaveClick {
}

- (BVMineTool *)mineTool {
    if (!_mineTool) {
        _mineTool = [[BVMineTool alloc] init];
    }
    return _mineTool;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


@end
